VN Exclusive Proxy – How to Change IP

Request a new exit IP via the Change-IP API. Your proxy host and port stay the same.

If you have a VN Exclusive proxy, you can request a new exit IP by calling our Change-IP API. Only the exit IP changes; keep using the same host:port:username:password.

1 What you need

2 API details

MethodPOST
Path/api/v1/proxy/change-ip
AuthenticationHTTP Basic (proxy username and password)
ResponseJSON: {"success": true|false, "message"?: string, "error"?: string}

3 cURL command

Use https://proxy_api.hstockplus.com as the API base and your proxy username and password:

curl -X POST "https://proxy_api.hstockplus.com/api/v1/proxy/change-ip" -u "YOUR_PROXY_USERNAME:YOUR_PROXY_PASSWORD"

Example:

curl -X POST "https://proxy_api.hstockplus.com/api/v1/proxy/change-ip" -u "prx_1d57_80cc1b:M8mHQuZA"

4 Success and error codes

ResultHTTPMeaning
Success200{"success":true,"message":"Change-IP request sent"}. Your next requests through the proxy will use the new IP.
Auth failed401Missing or invalid Basic auth. Use your proxy username and password in the Authorization header.
Not eligible400This account is not a VN exclusive proxy, or it has no key assigned. Check with your provider.
Order not found404Order was deleted or does not exist. Contact support.
Wait before retry429Too many change-IP requests. Response error gives the message (e.g. "Please wait 171 seconds before requesting a new proxy."). Use the Retry-After response header (seconds) before calling again.
Upstream busy502No new IP available at the moment. Try again later.
Service error503Upstream or internal error. Check the error field in the response body.
Server error500Unexpected server error. Check error in the response; retry or contact support.
Note: You do not change your proxy host or port. Keep using the same host:port:username:password; only the exit IP is updated after a successful change-IP call.

This guide applies to VN Exclusive proxy accounts. For other proxy types or issues, contact your provider.